package cmd

import (
	"fmt"
	"os"

	cobra "github.com/github-user/myCobra"
)

var rootCmd = &cobra.Command{
	Use:   "easyApp",
	Short: "an easy app which could print Hello World!",
	Long:  `easy easy easy easy easy easy easy easy easy easy`,
	Run: func(cmd *cobra.Command, args []string) {
		fmt.Printf("Hello world!\n")
	},
}

func init() {
	rootCmd.AddCommand(dateCmd)
}

func Execute() {
	if err := rootCmd.Execute(); err != nil {
		fmt.Fprintln(os.Stderr, err)
		os.Exit(1)
	}
}